const defaultState = {
  checkTab: 0,
  education: [],
};
export default (state = defaultState, action) => {
  if (action.type === 'checkTab') {
    const newState = JSON.parse(JSON.stringify(state)); // 深度拷贝state
    newState.checkTab = action.value;
    return newState;
  }
  if (action.type === 'education') {
    const newState = JSON.parse(JSON.stringify(state)); // 深度拷贝state
    newState.education = action.value;
    return newState;
  }
  return state;
};
